import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { Course } from './../../course/models/course.entity';
import { OneToMany } from 'typeorm';

@Entity()
export class courseType {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  title: string;

  @Column()
  key: string;

  @OneToMany(() => Course, (Course) => Course.type)
  Coursetype: Course[];
}
